﻿using Common.Communal;
using MediatR;
using System.ComponentModel.DataAnnotations;

namespace Sell.Api.Write.Application.Command.PhrasesCommand
{
    public class PhrasesAddCommand: IRequest<ApiResult<int>>
    {
        /// <summary>
        /// 合同名称
        /// </summary>
        [Required(ErrorMessage = "合同名称不能为空")]
        public string ContractName { get; set; }
        /// <summary>
        /// 合同编号
        /// </summary>
        [Required(ErrorMessage = "合同编号不能为空")]
        public string ContractCode { get; set; }
        /// <summary>
        /// 签订日期
        /// </summary>
        public DateTime? UpdateTime { get; set; }
        /// <summary>
        /// 客户
        /// </summary>
        [Required(ErrorMessage = "客户ID不能为空")]
        public int CustomerId { get; set; }
        /// <summary>
        /// 合同金额
        /// </summary>
        [Required(ErrorMessage = "合同金额不能为空")]
        public decimal ContractPrice { get; set; }
        /// <summary>
        /// 发货日期
        /// </summary>
        public DateTime? CreateTime { get; set; }
        /// <summary>
        /// 是否审核
        /// </summary>
        public int Review { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string? Desc { get; set; }
        /// <summary>
        /// 产品
        /// </summary>
        [Required(ErrorMessage = "产品ID不能为空")]
        public int ProductId { get; set; }
    }
}
